package by.blog.dao.beans;

import java.io.Serializable;

/**
 * Бондарчик Антон  15.11.2014.
 */
public class User implements Serializable {

    private String user_name;
    private String user_pass;

    public User() {
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_pass() {
        return user_pass;
    }

    public void setUser_pass(String user_pass) {
        this.user_pass = user_pass;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User)) return false;

        User user = (User) o;

        if (!user_name.equals(user.user_name)) return false;
        if (!user_pass.equals(user.user_pass)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = user_name.hashCode();
        result = 31 * result + user_pass.hashCode();
        return result;
    }
}
